//
//  YZMStockRealDictModel.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/7.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMStockRealDictModel.h"
#import "YZMStockRealModel.h"

@interface YZMStockRealDictModel()

@property (nonatomic, strong) NSDictionary *dataDict;

@end

@implementation YZMStockRealDictModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return nil;
}

+ (id)yz_transFormWithData:(id)data error:(NSError **)error
{
    NSMutableDictionary *storageDict = [NSMutableDictionary dictionary];
    NSDictionary *dictionary = data;
    NSArray *keys = [dictionary allKeys];
    for (NSString *key in keys) {
        NSDictionary *dict = [dictionary objectForKey: key];
        YZMStockRealModel *realItem = [MTLJSONAdapter modelOfClass: [YZMStockRealModel class] fromJSONDictionary: dict error: error];
        if (realItem) {
            [storageDict setObject: realItem forKey: key];
        }
    }
    return storageDict;
}

@end
